package com.ruoyi.boss.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.boss.mapper.OrganizationInfoMapper;
import com.ruoyi.boss.domain.OrganizationInfo;
import com.ruoyi.boss.service.IOrganizationInfoService;

/**
 * 机构信息管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-19
 */
@Service
public class OrganizationInfoServiceImpl implements IOrganizationInfoService 
{
    @Autowired
    private OrganizationInfoMapper organizationInfoMapper;

    /**
     * 查询机构信息管理
     * 
     * @param id 机构信息管理主键
     * @return 机构信息管理
     */
    @Override
    public OrganizationInfo selectOrganizationInfoById(Long id)
    {
        return organizationInfoMapper.selectOrganizationInfoById(id);
    }

    /**
     * 查询机构信息管理列表
     * 
     * @param organizationInfo 机构信息管理
     * @return 机构信息管理
     */
    @Override
    public List<OrganizationInfo> selectOrganizationInfoList(OrganizationInfo organizationInfo)
    {
        return organizationInfoMapper.selectOrganizationInfoList(organizationInfo);
    }

    /**
     * 新增机构信息管理
     * 
     * @param organizationInfo 机构信息管理
     * @return 结果
     */
    @Override
    public int insertOrganizationInfo(OrganizationInfo organizationInfo)
    {
        return organizationInfoMapper.insertOrganizationInfo(organizationInfo);
    }

    /**
     * 修改机构信息管理
     * 
     * @param organizationInfo 机构信息管理
     * @return 结果
     */
    @Override
    public int updateOrganizationInfo(OrganizationInfo organizationInfo)
    {
        return organizationInfoMapper.updateOrganizationInfo(organizationInfo);
    }

    /**
     * 批量删除机构信息管理
     * 
     * @param ids 需要删除的机构信息管理主键
     * @return 结果
     */
    @Override
    public int deleteOrganizationInfoByIds(Long[] ids)
    {
        return organizationInfoMapper.deleteOrganizationInfoByIds(ids);
    }

    /**
     * 删除机构信息管理信息
     * 
     * @param id 机构信息管理主键
     * @return 结果
     */
    @Override
    public int deleteOrganizationInfoById(Long id)
    {
        return organizationInfoMapper.deleteOrganizationInfoById(id);
    }
}
